<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./iconfont/iconfont.css">

    <style>
        * {
            margin: 0;
            padding: 0
        }

        .container {
            padding: 0;
            margin: 20px auto;
            width: 1240px;
            height: 200px;
            /* background-color: aqua; */
        }

        .container ul {
            list-style: none;
            height: 200px;
            width: 1240px;
            /* background-color: yellow; */

        }

        .container li {
            float: left;
            width: 410px;
            height: 200px;
            background-color: azure;
            margin-right: 5px;
            overflow: hidden;
        }

        .container li:nth-child(3n) {
            margin-right: 0px;
        }

        .container a {
            position: relative;
            width: 410px;
            height: 200px;
            display: inline-block;
            background-repeat: no-repeat;
            background-position: center;
            background-size: cover;
            
        }

        img {
            width: 100%;
            vertical-align: middle;
        }

        
        .container a::after {
            position: absolute;
            content: '';
            display: inline-block;
            width: 410px;
            height: 200px;
            left: 0;
            top: 0;
            background-image: linear-gradient(
                transparent,
                rgba(0,0,0,1)
            );
            opacity: 0;
            transition: all 0.3s;

        }

        .container .pic img {
           transition: all .3s;
        }

        .container .txt {
            position: absolute;
            width: 410px;
            height: auto;
            z-index: 1;
            left: 0;
            bottom: -40px;
            padding: 20px 30px;
            color: aliceblue;
            transition: transform .3s;
            
        }


        .container li:hover a::after {
            opacity: 1;
        }

        .container li:hover .pic img {
            transform: scale(1.3);
        }

        .container li:hover .txt {
            transform: translateY(-50px);
        }

        i {
            font-size: 60px;
        }


    </style>
</head>

<body>
    <div class="container">
        <ul>
            <li>
                <a href="#" class="item1">
                    <div class="pic">
                        <img src="./accessts/1.webp" alt="" />
                    </div>
                    <div class="txt">
                        <h4>我是一个信息的标题</h4>
                        <span>查看更多</span>
                        <i class="iconfont icon-jinrujiantou"> </i>
                    </div>
                  
                </a>
            </li>
            <li>
                <a href="#" class="item1">
                    <div class="pic">
                        <img src="./accessts/2.webp" alt="" />
                    </div>
                    <div class="txt">
                        <h4>我是一个信息的标题</h4>
                        <span>查看更多</span>
                        <i class="iconfont icon-jinrujiantou"> </i>
                    </div>
                  
                </a>
                
            </li>
            <li>
                <a href="#" class="item1">
                    <div class="pic">
                        <img src="./accessts/3.webp" alt="" />
                    </div>
                    <div class="txt">
                        <h4>我是一个信息的标题</h4>
                        <span>查看更多</span>
                        <i class="iconfont icon-jinrujiantou"> </i>
                    </div>
                  
                </a>
               
            </li>
        </ul>
    </div>
</body>

</html>